<h1><span class="reg_ico"></span><?= lang('label_shiping_details'); ?></h1>

<ul class="breadcrumb">
    <li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
    <li><a href="<?= base_url("store") ?>"><?= lang('label_menu_link_mystore') ?></a></li>
    <li><a href="<?= base_url("store/deals") ?>"><?= lang('label_deals') ?></a></li>
    <li><a href="<?= base_url("store/showdeal/$details->id/$details->inv_num") ?>"><?= lang('label_deal_details') . ' (' . strtoupper($details->inv_num) . ')' ?></a></li>
    <li><?= lang('label_shiping_details') ?></li>
</ul>


<div class="page">
    <div class="invoice">
        <b>&raquo; <?= lang('label_invoices_id') ?> :</b>  <?= strtoupper($details->inv_num) ?>
        <br /><b>&raquo; <?= lang('label_product_name') ?> :</b>  <a href="<?= base_url('products/view/' . $details->product_id) ?>" target="_blank"><?= $details->title ?></a>
        <?php if ($details->address) { ?>
            <br /><b>&raquo; <?= lang('label_address') ?> :</b>  <?= $details->address ?>
        <?php } ?>
        <?php if ($details->city_id) { ?>
            <br /><b>&raquo; <?= lang('label_menu_link_city') ?> :</b>  <?= get_city_name_id($details->city_id) ?>
        <?php } ?>
        <?php if ($details->mobile) { ?>
            <br /><b>&raquo; <?= lang('label_mobile') ?> :</b>  <?= $details->mobile ?>
        <?php } ?>
        <?php if ($shipingdetails->track_num) { ?>
            <br /><b>&raquo; <?= lang('label_shiping_track_num') ?> :</b>  <?= $shipingdetails->track_num ?>
        <?php } ?>
        <?php if ($shipingdetails->company) { ?>
            <br /><b>&raquo; <?= lang('label_shiping_company') ?> :</b>  <?= $shipingdetails->company ?>
        <?php } ?>
        <?php if ($shipingdetails->company_site) { ?>
            <br /><b>&raquo; <?= lang('label_shiping_company_site') ?> :</b>  <?= $shipingdetails->company_site ?>
        <?php } ?>
        <?php if ($shipingdetails->sent_date) { ?>
            <br /><b>&raquo; <?= lang('label_shiping_sent_date') ?> :</b>  <?= $shipingdetails->sent_date ?>
        <?php } ?>
        <?php if ($shipingdetails->create_date) { ?>
            <br /><b>&raquo; <?= lang('label_created_date') ?> :</b>  <?= $shipingdetails->create_date ?>
        <?php } ?>
        <?php if ($shipingdetails->file) { ?>
            <br /><b>&raquo; <?= lang('label_shiping_bill_image') ?> :</b><br />  <img src='<?= base_url(STORE_PATH . $shipingdetails->file) ?>'>
        <?php } ?>
    </div>

    <?php if (!$shipingdetails->file) { ?>
        <form class="forms" enctype="multipart/form-data" action="<?php echo current_url() ?>" method="post">


            <div class="browse">
                <label for="image"><?= lang('label_shiping_bill_image') ?> :</label>
                <samp>
                    <input type="file" id="image" name="image"  /><label for="image"></label>
                </samp>
            </div>
            <div class="submit">
                <input name="submit" value="<?= lang('label_save') ?>" type="submit"  >
            </div>

        </form>
    <?php } ?>
</div>